package com.gaoyang;

public class SimpleRunner implements Runnable
{  
    int runIndex = 0;  
  
    public void setRunIndex(int runIndex)  
    {  
        this.runIndex = runIndex;  
    }  
  
    public void run()   
    {  
        try  
        {  
            //3秒内随机时间结束  
            Thread.sleep((long) (Math.random() * 3000));
            System.out.println("start run:" + runIndex);
        } catch (InterruptedException e)  
        {  
            // TODO Auto-generated catch block  
            e.printStackTrace();  
        }  
    }  
}  
